home *** CD-ROM | disk | FTP | other *** search
-
-
-
- UUUUNNNNZZZZIIIIPPPP((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((22222222 AAAAuuuugggg 99992222 ((((vvvv5555....0000)))))))) UUUUNNNNZZZZIIIIPPPP((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- unzip - list/test/extract from a ZIP archive file
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- uuuunnnnzzzziiiipppp [ -ccccffffllllppppttttuuuuvvvvxxxxzzzz[aaaajjjjnnnnooooqqqqUUUUVVVV] ] _f_i_l_e[._z_i_p] [_f_i_l_e_s_p_e_c ...]
-
- AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
- _f_i_l_e[._z_i_p] Path of the ZIP archive. The suffix ``._z_i_p'' is
- applied if the _f_i_l_e specified does not exist.
- Note that self-extracting ZIP files are
- supported; just specify the ``._e_x_e'' suffix
- yourself.
-
- [_f_i_l_e_s_p_e_c] An optional list of archive members to be
- processed. Expressions may be used to match
- multiple members; be sure to quote expressions
- that contain characters interpreted by the
- operating system. See DESCRIPTION (below) for
- more details.
-
- OOOOPPPPTTTTIIIIOOOONNNNSSSS
- -c extract files to stdout/screen (``CRT'')
- -f freshen existing files (replace if newer); create none
- -l list archive files (short format)
- -p extract files to pipe; no informational messages
- -t test archive files
- -u update existing files; create new ones if needed
- -v list archive files (verbose format)
- -x extract files in archive (default)
- -z display only the archive comment
-
- MMMMOOOODDDDIIIIFFFFIIIIEEEERRRRSSSS
- -a convert to MS-DOS textfile format (CR LF), Mac format
- (CR), Unix/VMS format (LF), OR from ASCII to EBCDIC,
- depending on your system (only use for TEXT files!)
- -j junk paths (don't recreate archive's directory
- structure)
- -n never overwrite existing files; don't prompt
- -o OK to overwrite files without prompting
- -q perform operations quietly (-qq => even quieter)
- -s [OS/2, MS-DOS] allow spaces in filenames (e.g.,
- ``EA DATA. SF'')
- -U leave filenames uppercase if created under MS-DOS, VMS,
- etc.
- -V retain (VMS) file version numbers
- -X [VMS] restore owner/protection info (may require
- privileges)
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _U_n_Z_i_p will list, test, or extract from a ZIP archive,
- commonly found on MSDOS systems. Archive member extraction
- is implied by the absence of the -c, -p, -t, -l, -v or -z
-
-
-
- Page 1 (printed 3/9/94)
-
-
-
-
-
-
- UUUUNNNNZZZZIIIIPPPP((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((22222222 AAAAuuuugggg 99992222 ((((vvvv5555....0000)))))))) UUUUNNNNZZZZIIIIPPPP((((1111))))
-
-
-
- options. All archive members are processed unless a
- _f_i_l_e_s_p_e_c is provided to specify a subset of the archive
- members. The _f_i_l_e_s_p_e_c is similar to an egrep expression,
- and may contain:
-
- * matches a sequence of 0 or more characters
- ? matches exactly 1 character
- \nnn matches the character having octal code nnn
- [...] matches any single character found inside the
- brackets; ranges are specified by a beginning
- character, a hyphen, and an ending character. If an
- exclamation point or a carat (`!' or `^') follows the
- left bracket, then the range of characters matched is
- complemented with respect to the ASCII character set
- (that is, anything except the characters inside the
- brackets is considered a match).
-
- EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT OOOOPPPPTTTTIIIIOOOONNNNSSSS
- _U_n_Z_i_p's default behavior may be modified via options placed
- in an environment variable. This can be done with any
- option, but it is probably most useful with the -q, -o, or
- -n modifiers: in order to make _U_n_Z_i_p quieter by default, or
- to make it always overwrite or never overwrite files as it
- extracts them. For example, to make _U_n_Z_i_p act as quietly as
- possible, only reporting errors, one would use one of the
- following commands:
-
- setenv UNZIP -qq Unix C shell
-
- UNZIP=-qq; export UNZIP Unix Bourne shell
-
- set UNZIP=-qq OS/2 or MS-DOS
-
- define UNZIP_OPTS "-qq" VMS (quotes for LOWERCASE)
-
- Environment options are, in effect, considered to be just
- like any other command-line options, except that they are
- effectively the first options on the command line. To
- override an environment option, one may use the ``minus
- operator'' to remove it. For instance, to override one of
- the quiet-flags in the example above, use the command
-
- _u_n_z_i_p --q[other options] zipfile
-
- The first hyphen is the normal switch character, and the
- second is a minus sign, acting on the q option. Thus the
- effect here is to cancel a single quantum of quietness. To
- cancel both quiet flags, two (or more) minuses may be used:
-
- _u_n_z_i_p -x--q zipfile
-
- or
-
-
-
- Page 2 (printed 3/9/94)
-
-
-
-
-
-
- UUUUNNNNZZZZIIIIPPPP((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((22222222 AAAAuuuugggg 99992222 ((((vvvv5555....0000)))))))) UUUUNNNNZZZZIIIIPPPP((((1111))))
-
-
-
- _u_n_z_i_p ---qx zipfile
-
- (the two are equivalent). This may seem awkward or
- confusing, but it is reasonably intuitive: just ignore the
- first hyphen and go from there. It is also consistent with
- the behavior of Unix nice(1).
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- To use _U_n_Z_i_p to extract all members of the archive
- letters.zip, creating any directories as necessary:
-
- _u_n_z_i_p letters
-
- To extract all members of letters.zip to the current
- directory:
-
- _u_n_z_i_p -j letters
-
- To test letters.zip, printing only a summary message
- indicating whether the archive is OK or not:
-
- _u_n_z_i_p -tq letters
-
- To extract to standard output all members of letters.zip
- whose names end in ``.tex'', converting to the local end-
- of-line convention and piping the output into more(1):
-
- _u_n_z_i_p -ca letters \*.tex | more
-
- (The backslash before the asterisk is only required if the
- shell expands wildcards, as in Unix; double quotes could
- have been used instead, as in the source example below.) To
- extract the binary file paper1.dvi to standard output and
- pipe it to a printing program:
-
- _u_n_z_i_p -p articles paper1.dvi | dvips
-
- To extract all FORTRAN and C source files--*.f, *.c, *.h,
- Makefile (the double quotes are necessary only in Unix and
- only if globbing is turned on):
-
- _u_n_z_i_p source.zip "*.[fch]" Makefile
-
- To extract only newer versions of the files already in the
- current directory, without querying (NOTE: be careful of
- unzipping in one timezone a zipfile created in another--ZIP
- archives contain no timezone information, and a ``newer''
- file from an eastern timezone may, in fact, be older):
-
- _u_n_z_i_p -fo sources
-
- To extract newer versions of the files already in the
-
-
-
- Page 3 (printed 3/9/94)
-
-
-
-
-
-
- UUUUNNNNZZZZIIIIPPPP((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((22222222 AAAAuuuugggg 99992222 ((((vvvv5555....0000)))))))) UUUUNNNNZZZZIIIIPPPP((((1111))))
-
-
-
- current directory and to create any files not already there
- (same caveat as previous example):
-
- _u_n_z_i_p -uo sources
-
- In the last five examples, assume that UNZIP or UNZIP_OPTS
- is set to -q. To do a singly quiet listing:
-
- _u_n_z_i_p -_l _f_i_l_e
-
- To do a doubly quiet listing:
-
- _u_n_z_i_p -_q_l _f_i_l_e
-
- To do a standard listing:
-
- _u_n_z_i_p --_q_l _f_i_l_e
-
- or
-
- _u_n_z_i_p -_l-_q _f_i_l_e
-
- or
-
- _u_n_z_i_p -_l--_q _f_i_l_e
-
- (extra minuses don't hurt).
-
- TTTTIIIIPPPPSSSS
- The current maintainer, being a lazy sort, finds it very
- useful to define an alias ``tt'' for ``unzip -tq''. One may
- then simply type ``tt zipfile'' to test the archive,
- something which one ought make a habit of doing. With luck
- _U_n_Z_i_p will report ``No errors detected in zipfile.zip,''
- after which one may breathe a sigh of relief.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- funzip(1), zip(1), zipcloak(1), zipinfo(1), zipnote(1),
- zipsplit(1)
-
- AAAAUUUUTTTTHHHHOOOORRRRSSSS
- Samuel H. Smith, Carl Mascott, David P. Kirschbaum, Greg R.
- Roelofs, Mark Adler, Kai Uwe Rommel, Igor Mandrichenko,
- Johnny Lee, Jean-loup Gailly; Glenn Andrews, Joel Aycock,
- Allan Bjorklund, James Birdsall, Wim Bonner, John Cowan,
- Frank da Cruz, Bill Davidsen, Arjan de Vet, James Dugal, Jim
- Dumser, Mark Edwards, David Feinleib, Mike Freeman, Hunter
- Goatley, Robert Heath, Dave Heiland, Larry Jones, Kjetil
- J(o)rgenson, Bob Kemp, J. Kercheval, Alvin Koh, Bo Kullmar,
- Johnny Lee, Warner Losh, Fulvio Marino, Gene McManus, Joe
- Meadows, Mike O'Carroll, Humberto Ortiz-Zuazaga, Piet W.
- Plomp, Antonio Querubin Jr., Steve Salisbury, Georg Sassen,
-
-
-
- Page 4 (printed 3/9/94)
-
-
-
-
-
-
- UUUUNNNNZZZZIIIIPPPP((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((22222222 AAAAuuuugggg 99992222 ((((vvvv5555....0000)))))))) UUUUNNNNZZZZIIIIPPPP((((1111))))
-
-
-
- Jon Saxton, Hugh Schmidt, Martin Schulz, Charles Scripter,
- Chris Seaman, Richard Seay, Alex Sergejew, Cliff Stanford,
- Onno van der Linden, Jim Van Zandt, Antoine Verheijen, Paul
- Wells.
-
- VVVVEEEERRRRSSSSIIIIOOOONNNNSSSS
- v1.2 15 Mar 89 Samuel H. Smith
- v2.0 9 Sep 89 Samuel H. Smith
- v2.x fall 1989 many Usenet contributors
- v3.0 1 May 90 Info-ZIP (DPK, consolidator)
- v3.1 15 Aug 90 Info-ZIP (DPK, consolidator)
- v4.0 1 Dec 90 Info-ZIP (GRR, maintainer)
- v4.1 12 May 91 Info-ZIP
- v4.2 20 Mar 92 Info-ZIP (zip-bugs subgroup; GRR, maint.)
- v5.0 21 Aug 92 Info-ZIP (zip-bugs subgroup; GRR, maint.)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 5 (printed 3/9/94)
-
-
-
-